<!DOCTYPE html>
<html lang="en">
<head>
    <title>Title</title>
</head>
<body>
<form action="testimg" method="post" enctype="multipart/form-data">
    {% csrf_token %}
    {{ img }}
    <input type="submit" value="提交"/>
</form>
</body>
</html>